<?php 
if (!empty($this->flash_messages))
{
    foreach ($this->flash_messages as $flash_message)
    {
        echo '<div class="message">'.$flash_message.'</div>';
    }
}
?>

<?php if (!empty($this->message)) : ?>
<div class="message"><?php echo $this->message ?></div>
<?php endif; ?>

<div id="file-form">
<?php echo $this->form ?>
</div>